﻿using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Inovout.Cloud.DataWarehouse.Web.Models
{
    public class DataCollectionInfo:BaseInfo
    {
        private string databaseName;
        [JsonProperty("databaseName")]
        public string DatabaseName 
        {
            get
            {
                return this.databaseName.ToLower();
            }
            set
            {
                this.databaseName = value;
            }
        }

        private string tableName;
        [JsonProperty("tableName")]
        public string TableName 
        {
            get
            {
                return this.tableName.ToLower();
            }
            set
            {
                this.tableName = value;
            }
        }

        [JsonProperty("isPublish")]
        public bool IsPublish { get; set; }

        [JsonProperty("displayProperties")]
        public string DisplayProperties { get; set; }

        /// <summary>
        /// 发布的所有字段列表
        /// </summary>
        [JsonProperty("dataCollectionProperties")]
        public ArrayList DataCollectionProperties { get; set; }

        public DataCollectionViewTemplateInfo DataCollectionViewTemplate { get; set; }
    }
}